package com.neusoft.neuhealth.service;

import com.neusoft.neuhealth.po.user.*;
import com.neusoft.neuhealth.po.Result;
import com.neusoft.neuhealth.po.user.result.RoleNumResult;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface IUserService {
    Result<LoginResponse> login(UserLogin user);

    Result add(UserAdd user);

    Result<UserListResult> list(UserList user);

    Result delete(List<String> userName);

    Result update(UserAdd user);

    Result<Long> count();

    Result<List<RoleNumResult>> roleNum();

    boolean getUserByEmail(String email);

    Result<String> uploadFile(MultipartFile file,String token);

    Result<String> getAvatar(String token);

    Result<String> getEmail(String token);
}
